<html>
<head>
<meta charset="UTF-8">
<title>会签插件配置新增</title>
<link id="easyuiTheme" href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-edit.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
	<script src="../../static/easyui/jquery.cookie.js" type="text/javascript"></script>
	<script src="../../static/easyui/ui-theme.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">
	<form id="ff" method="post">
		<div class="esaas-info-title">会签插件配置信息</div>
		<table class="esaas-info-edit-table">
			<tr>
				<td width="15%" align="right">插件配置信息标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="pluginConfId" data-options="required:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">审批机构标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="approveOrgId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">审批机构名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="approveOrgName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">审批岗位标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="approveDutyId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">审批岗位名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="approveDutyName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">发起人标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="sponsorUserId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">发起人名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="sponsorUserName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">牵头人标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="headUserId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">牵头人名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="headUserName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">会签人数：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="countersignNumber" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">投票人数：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="voteNumber" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">同意票数：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="agreeNumber" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">反对票数：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="negativeNumber" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">复议票数：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="reconsiderNumber" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">要求办理天数：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="restrictDays" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			    <td width="15%" align="right">会签策略：</td>
				<td width="35%"><select class="easyui-combobox"
					id="countersignStrategy" name="countersignStrategy"
					style="width: 100%; height: 25px;"
					data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:COUNTERSIGN_STRATEGY">
				</select></td></tr>
		</table>
	</form>
	<div class="esaas-info-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton " iconCls="icon-ok" onclick="submitForm()" style="width:90px">&nbsp;保&nbsp;存&nbsp;</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closeForm()" style="width:90px">&nbsp;关&nbsp;闭&nbsp;</a>
	</div>
	<script>


		$(function() {
            addTitle("新增");

		});

		function submitForm() {
			if (!$('#ff').form('validate'))
				return;
			var jsonData = $("#ff").serializeJson();
			$.restfulPostJson('../../api/plugin/countersign/conf', jsonData, function(data) {
				window.parent.reloadList();
			});
		};
		
		function closeForm() {
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
